package upcasting;

public class Main {
    public static void one(Dog dog){
        dog.eat();
    }
    public static void main(String[] args) {
        Animal animal = new Animal();
        Dog dog = new Dog();
        one(dog);
    }
}
